package com.nox.trademe.testapp.fragments;

import android.app.Dialog;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;

import com.nox.trademe.testapp.R;

public class CustomProgressDialogFragment extends DialogFragment {

	public static CustomProgressDialogFragment newInstance() {
		return new CustomProgressDialogFragment ();
	}

	@Override
	public Dialog onCreateDialog(Bundle savedInstanceState) {

		final ProgressDialog dialog = new ProgressDialog(getActivity());
		dialog.setMessage(getString(R.string.loading_categories));
		dialog.setIndeterminate(true);
		this.setCancelable(false);
		return dialog;
	}

}